package com.product.android.business.headImage;

import android.graphics.Bitmap;

import com.common.android.utils.ImageUtils;
import com.nd.android.u.allcommon.R;
import com.product.android.business.ApplicationVariable;
import com.product.android.business.config.Configuration;

public class HeadImageCache {

	public static Bitmap mDefaultBitmap = drawableToBitmap(Configuration.DEFAULTFACEIMAGE);
	public static Bitmap mDefaultGrayBitmap = ImageUtils.toGrayImage(mDefaultBitmap);
	//dyf temp
	public static Bitmap mDefaultBitmapSquare = drawableToBitmap(R.drawable.default_usershow_head_square);
//	
//	public static Bitmap mDefaultAppIcon = ImageManager.drawableToBitmap(R.drawable.app_91pp);
	public static Bitmap mDefaultUserShowBitmap = drawableToBitmap(R.drawable.default_usershow_head);
	public static Bitmap mDefaultUserShowBitmapSquare = drawableToBitmap(R.drawable.default_usershow_head_square);
//	
//	public static Bitmap mDefaultPractisePhoto = ImageManager.drawableToBitmap(R.drawable.default_practise_photo);
//	
//	public static Bitmap mDefaultAlbummap = ImageManager.drawableToBitmap(R.drawable.card_album_default);
	
	public static Bitmap drawableToBitmap(int resId) {
		return ImageUtils.drawableToBitmap(
				ApplicationVariable.INSTANCE.applicationContext, resId,
				Configuration.DEFAULTFACEIMAGE);
	}
}